import request from '@/utils/request'

// 查询播放列列表
export function listPlaylists(query) {
  return request({
    url: '/site/playlists/list',
    method: 'get',
    params: query
  })
}

// 查询播放列详细
export function getPlaylists(playlistId) {
  return request({
    url: '/site/playlists/' + playlistId,
    method: 'get'
  })
}

// 新增播放列
export function addPlaylists(data) {
  return request({
    url: '/site/playlists',
    method: 'post',
    data: data
  })
}

// 修改播放列
export function updatePlaylists(data) {
  return request({
    url: '/site/playlists',
    method: 'put',
    data: data
  })
}

// 删除播放列
export function delPlaylists(playlistId) {
  return request({
    url: '/site/playlists/' + playlistId,
    method: 'delete'
  })
}
